package org.jcubic.mvc.mapping;


import java.util.HashMap;
import java.util.Map;

/**
 * 请求管理类
 */
public class RequestMappingManager {

    private String className;//Controller 类名，路 com.jcubic.mvc.test.controller.IndexController 当作Map的Key

    private Map<String, RequestMapping> stringRequestMappingMap; //request 所有url

    private static RequestMappingManager requestMappingManager;


    public RequestMappingManager() {
    }




    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public Map<String, RequestMapping> getStringRequestMappingMap() {
        if (stringRequestMappingMap == null) {
            stringRequestMappingMap = new HashMap<String, RequestMapping>();
        }
        return stringRequestMappingMap;
    }

    public void setStringRequestMappingMap(Map<String, RequestMapping> stringRequestMappingMap) {
        this.stringRequestMappingMap = stringRequestMappingMap;
    }

}
